

package com.briup.cms.service;

import com.briup.cms.bean.Article;
import com.briup.cms.bean.extend.ArticleExtend;
import com.briup.cms.exception.CustomerException;
import com.github.pagehelper.PageInfo;

public interface IArticleService {

    ArticleExtend findByIdWithCategoryAndUser(int id) throws CustomerException;

    void saveOrUpdate(Article article) throws CustomerException;

    PageInfo<ArticleExtend> pageQueryArticleWithCategoryAndUser(int pageNum, int pageSize, String title, Integer status, Integer categoryId) throws CustomerException;

    void deleteById(int id) throws CustomerException;

    PageInfo<ArticleExtend> pageQueryRecommend(int pageNum, int pageSize) throws CustomerException;

    void changeStatus(int id, int status) throws CustomerException;
}
